package com.example.administrator.mysaft;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by usernamee on 2017/6/17.
 */

public class TrafficopenHelper extends SQLiteOpenHelper {

private static final String DB_NAME="traffic.db";
    private static final String TABLE_NAME ="traffic";
    private  static final String GPRS="gprs";
    private  static final String TIME="date";

    public TrafficopenHelper(Context context) {
        super(context, DB_NAME, null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {

db.execSQL("create table "+TABLE_NAME+"(" +
        "id integer primary key,"+
        "gprs varchar(255),"+
        "date datetime)");
    }


    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
